import request from '@/utils/request'

// 查询套餐的信息列表
export function listSetmealinfo(query) {
  return request({
    url: '/setmealinfo/setmealinfo/list',
    method: 'get',
    params: query
  })
}

// 查询套餐的信息详细
export function getSetmealinfo(id) {
  return request({
    url: '/setmealinfo/setmealinfo/' + id,
    method: 'get'
  })
}

// 新增套餐的信息
export function addSetmealinfo(data) {
  return request({
    url: '/setmealinfo/setmealinfo',
    method: 'post',
    data: data
  })
}

// 修改套餐的信息
export function updateSetmealinfo(data) {
  return request({
    url: '/setmealinfo/setmealinfo',
    method: 'put',
    data: data
  })
}

// 删除套餐的信息
export function delSetmealinfo(id) {
  return request({
    url: '/setmealinfo/setmealinfo/' + id,
    method: 'delete'
  })
}
